package com.xu.seckillkill.pojo;

public enum Status {
    //公共
    SUCCESS(200, "成功"),
    ERROR(500, "失败"),
    //登录状态
    UNKNOWN_ERROR(-1, "未知错误"),
    LOGIN_ERROR(300, "登录失败用户名和密码错误"),
    //秒杀问题
    USER_NULL(600,"用户未登录"),
    GOODES_NULL(5001,"库存不足")
    ;

    private Integer code;
    private String value;

    Status(int i, String s) {
        this.code = i;
        this.value = s;
    }

    Status() {
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
